package com.zz.xapp.api

import com.zz.xapp.config.AppConfig
import com.zz.framework.core.annotation.BaseUrl
import com.zz.framework.core.entity.HttpResponse
import retrofit2.http.*

@BaseUrl(
    baseUrl = AppConfig.BASE_URL,//正式地址
    debugBaseUrl = AppConfig.BASE_URL_DEBUG//测试地址
)
interface ApiService {
    @POST("/cmsprovider/v2.5/user/login")
    suspend fun userLogin(@Body params: HashMap<String, Any?>): HttpResponse<Any>

    @POST("/cmsprovider/v2.2/sms/loginVerifyCode")
    suspend fun loginVerifyCode(@Body params: HashMap<String, Any?>): HttpResponse<Any>

    @POST("/cmsprovider/v2.2/user/phoneLogin")
    suspend fun phoneLogin(@Body params: HashMap<String, Any?>): HttpResponse<Any>
}